﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using JYH.Data;
namespace JYH.Model
{

    /// <summary>
    ///  SysUserInfo
    /// </summary> 
    [TableName("SysUserInfo")]
    [PrimaryKey("UserID", autoIncrement = false)]
    [ExplicitColumns]
    [Serializable]
    public class SysUserInfo
    {

        /// <summary>
        /// 用户ID
        /// </summary>
        [Column]
        public string UserID { get; set; }

        /// <summary>
        /// 用户账户
        /// </summary>
        [Column]
        public string UserNO { get; set; }

        /// <summary>
        /// 用户姓名
        /// </summary>
        [Column]
        public string UserName { get; set; }

        /// <summary>
        /// 密码
        /// </summary>
        [Column]
        public string Pwd { get; set; }

        /// <summary>
        /// 账户状态  0 编辑 1 审核 8 暂停 9 删除
        /// </summary>
        [Column]
        public string RState { get; set; }


        [ResultColumn]
        public string RStateName
        {
            get
            {
                switch (RState) 
                {
                    default: return "UnKnow";
                    case "0":return "Editing";
                    case "1": return "Approved";
                    case "8": return "Pause";
                    case "9": return "Deleted";
                }
            }
        }
        /// <summary>
        /// 注册日期
        /// </summary>
        [Column]
        public string RegDate { get; set; }


        /// <summary>
        /// 上次登录时间
        /// </summary>
        [Column]
        public string LastTime { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [Column]
        public string CreateTime { get; set; }

        /// <summary>
        /// 创建人员
        /// </summary>
        [Column]
        public string CreateUser { get; set; }

        /// <summary>
        /// 修改时间
        /// </summary>
        [Column]
        public string UpdateTime { get; set; }

        /// <summary>
        /// 修改人员
        /// </summary>
        [Column]
        public string UpdateUser { get; set; }


        /// <summary>
        /// 菜单模组类型
        /// </summary>
        [ResultColumn]

        public string MenuModule { get; set; }

        [ResultColumn]
        public string IsSelect { get; set; }

        [ResultColumn]
        public string RoleID { get; set; }


    }

}
